//package org.springframework.common;
//
//import org.springframework.beans.BeansException;
//import org.springframework.beans.PropertyValue;
//import org.springframework.beans.PropertyValues;
//import org.springframework.beans.factory.ConfigurableListableBeanFactory;
//import org.springframework.beans.factory.config.BeanDefinition;
//import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
//
///**
// * @Name CustomBeanFactoryPostProcessor
// * @Description: 自定义 BeanFactoryPostProcessor 处理器
// * 描述信息：Spring 容器的扩展（装饰器模式）机制，实现在 Bean 实例化之前修改 BeanDefinition 信息。
// * @Version v1.0.0
// * @Author: lichao
// * @Date: 2024-03-19 20:12:26
// **/
//public class CustomBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
//    @Override
//    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
//        System.out.println("CustomBeanFactoryPostProcessor#postProcessBeanFactory()");
//        BeanDefinition personBeanDefinition = beanFactory.getBeanDefinition("person");
//        PropertyValues propertyValues = personBeanDefinition.getPropertyValues();
//        propertyValues.addPropertyValue(new PropertyValue("name", "lisi"));
//    }
//}
//
